<!-- 
*   @Description:
*   @Author:lxy
*   @Date:2023-03-23 10:23
-->
<!-- 平台名称  创始人  投运时间  投资额度 地址
所属公司  所属公司编码  下级子平台数量  平台规模 合格证编号  上市日期 -->
<template>
  <div class="topInfo">
    <div class="topInfo_dijaii" v-for="(item, index) in dataAll" :key="index">
      <img :src="require(`@/assets/img/ico${index + 1}.png`)" class="topInfo_icoIMg" />
      <div class="aidi">
        <span class="didiQiQi" v-for="(list, dex) in item" :key="dex">
          <i></i>
          <span class="titleSpan">{{ list.title }}（人）：</span>
          <span class="valSpan" :title="list.val">{{ list.val }}</span>
        </span>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "topInfo",
  data() {
    return {
      dataAll: [
        [
          { title: "养老护理人员", val: "166" },
          { title: "财政管理人员", val: "6" },
          { title: "餐饮服务人员", val: "25" },
          { title: "工勤人员", val: "28" },
          {
            title: "其他工作人员",
            val: "50",
          },
  
        ],
        [
          { title: "空巢老人", val: "860" },
          { title: "患病老人", val: "110" },
          { title: "伤残老人", val: 39 },
          { title: "烈士家属", val: "10" },
          { title: "高龄老人", val: "210" },
          { title: "孤寡老人", val: "45" },
        ],
      ],
    };
  },
};
</script>

<style scoped lang="less">
.topInfo{
  display: flex;
  justify-content: space-around;
  padding: 24px 0px;
  .topInfo_dijaii {
    width: 760px;
    display: flex;
    background-color: rgba(248, 216, 35, 0.452);
   
    &:first-child {
      background: url(@/assets/img/bg2.png);
      background-size: 100% 100%;
      .aidi {
        .didiQiQi {
          &:last-child {
            width: 100%;
          }
        }
      }
    }
    &:last-child {
      background: url(@/assets/img/bg1.png);
      background-size: 100% 100%;
    }
    .aidi {
      text-align: center;
      display: flex;
      justify-content: space-between;
      flex-wrap: wrap;
      box-sizing: border-box;
      padding: 10px 15px 10px 5px;

      .didiQiQi {
        text-align: left;
        width: 300px;
        display: inline-block;
        align-items: center;
        margin: 10px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font: 400 14px/22px 'PingFang SC';
        .titleSpan {
          color: #4F5566;
        }
        .valSpan {
          cursor: pointer;
          color: #111A34;
        }
      }
      i {
        display: inline-block;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        margin-right: 8px;
        margin-bottom: 2px;
        background-color: aqua;
      }
    }
  }
}

.topInfo_icoIMg {
  width: 40px;
  height: 40px;
  padding: 15px 5px 15px 20px;
}
</style>
